#ifndef __EPOLLDATA_HEADER
#define __EPOLLDATA_HEADER

#define LISTEN_SOCKET_TYPE 	0
#define SOCKET_RECV_TYPE 	1	
#define SOCKET_SEND_TYPE	2
#define PIPE_RECV_TYPE		3
#define PIPE_SEND_TYPE		4

struct EpollData {
	// 标识data的类型
	int type; 
	int fd;
	void *data;
	EpollData(int type_, int fd_, void *data_): 
		type(type_), fd(fd_), data(data_) {}
	~EpollData() {}
};


#endif // __EPOLLDATA_HEADER
